<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" import="java.util.*"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>School Register Form</title>
 <link rel="stylesheet" href="css/default.css"/>
<link rel="stylesheet" href="css/<%=session.getAttribute("cssView")%>/jquery-ui.css"/>
 <script type="text/javascript">
 $(document).ready(function(){
 defaultFunction();
 ui();
 jGrid();
 
 })
 </script>
<script type="text/javascript" src="js/setup/studentextrainfo.js"></script>
</head>

<body>
<%
List result=(List)request.getAttribute("result");
 
List<Object[]> gridData=(List<Object[]>)result.get(0);
%>
<div class="pageHeader">Student Extra Info </div>
<div class="content">
 <div class="form">
<form name="studentextrainfo" action="saveStudentInfoDetails">

<table class="form" cellpadding="0" cellspacing="0" >
<tr >
  <td >Entry  name  : </td>
  <td ><input type="text" name="lableName" notNull msg="Enter lable name" />
    <input name="studentExtraInfoId" value="-1" class="hide"/><input class="hide" name="status" value="Y"/></td></tr>
<tr>
  <td>Entry type : </td>
  <td><select name="lableType" notNull msg="Select entry type">
  <option value="-1" selected="selected">Select</option>
  <option value="text">Text</option>
  <option value="textarea">Notes</option>
  <option value="file">Document</option>
  </select></td> 
  </tr>
  <tr>
<td>Entry for  : </td>
<td><select name="infoType" notNull msg="Select entry for">
  <option value="-1" selected="selected">Select</option>
  <option value="Admission">Admission</option>
  <option value="Student Information">StudnetInformation</option>
   </select></td></tr>
<tr><td colspan="2" align="right"><input type="button" value="Save" onclick="stdinfo.saveupdate();" /><input type="reset" value="Clear" /></td></tr>
</table>

</form> 
</div>
<br />
<div class="grid_holder">
<a href="#" navigate onclick="return false" style="text-decoration:none" >
<table navigate class="grid" cellpadding="0" cellspacing="0" onDelete="stdinfo.removeInfo()" onEdit="stdinfo.editInfo()" searchAction="studentextrainfo.action">
<thead>
<tr>
 <th></th>
<th class="hide" >Entry Id</th>
 
<th>Entry Name</th>
<th class="hide">Entry Type  </th>
<th>Entry For  </th>
<th>Status</th>
 
<th></th>
<th></th>
</tr>
</thead>

<tbody>
<%
 
for(Object[] row:gridData){
%>
<tr active='N' >
 <td>&nbsp;&nbsp;</td>
  <td class="hide" field="studentExtraInfoId" edit="false"><%=row[0] %></td>
  
  <td field="lableName"><%=row[1] %></td>
  <td class="hide" field="lableType"  ><%=row[2] %></td>
  <td field="infoType"><%=row[3] %></td>
     <td field="status"><%=row[4] %></td>
  
  <td width="16"><span class="ui-icon ui-icon-pencil"></span></td>
  <td width="16"><span class="ui-icon ui-icon-trash"></span></td>
</tr>
 <%} %>
</tbody></table>
</a>
</div>
</div>
</body>
</html>
